﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageLayout.Master" AutoEventWireup="true" CodeBehind="doiMatkhau.aspx.cs" Inherits="BVVD_Website.user_zone.doiMatkhau" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 222px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="server">
    <div id="Div1" class="mpBottomContent" runat="server">        
        <table style="width: 400px; height: auto; text-align: left; margin: auto; border: 5px solid whitesmoke; padding: 5px 5px 5px 5px"">
            <caption style="font-weight:bold; font-size:14px; color:green">
                ĐỔI MẬT KHẨU
            </caption>
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr>

                <td>
                    <asp:Label runat="server" ID="lbl1" Text="Mật khẩu hiện tại" AssociatedControlID="txtOLDPASS"></asp:Label></td>
                <td>
                    <telerik:RadTextBox runat="server" TextMode="Password" ID="txtOLDPASS"></telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />' ControlToValidate="txtOLDPASS"></asp:RequiredFieldValidator>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lbl2" Text="Mật khẩu mới" AssociatedControlID="txtNEWPASS1"></asp:Label></td>
                <td>
                    <telerik:RadTextBox runat="server" TextMode="Password" ID="txtNEWPASS1"></telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />' ControlToValidate="txtNEWPASS1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="lbl3" Text="Nhập lại mật khẩu" AssociatedControlID="txtNEWPASS2"></asp:Label></td>
                <td>
                    <telerik:RadTextBox runat="server" TextMode="Password" ID="txtNEWPASS2"></telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage='<img alt="re-check" src="/images/invalid.png"  />' ControlToValidate="txtNEWPASS2"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="comparePasswords"
                        runat="server"
                        ControlToCompare="txtNEWPASS1"
                        ControlToValidate="txtNEWPASS2"
                        ErrorMessage="<br>Mật khẩu chưa khớp"
                        Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <telerik:RadButton OnClick="btnCHANGE_Click" CausesValidation="true" runat="server" ButtonType="LinkButton" Text="Đổi mật khẩu" ID="btnCHANGE"></telerik:RadButton>
                </td>
            </tr>
        </table>

    </div>
    <telerik:RadNotification ID="rnAlert" runat="server" ContentScrolling="Auto" Position="TopRight" Width="300" EnableRoundedCorners="true"
        EnableShadow="true" Skin="Hay" Overlay="true" Animation="Fade" AnimationDuration="1000" Title="Thông báo">
    </telerik:RadNotification>
</asp:Content>
